﻿Class MainWindow 

    Private Sub GenerateReport()
        Dim re As New ReportingEngine2.Reporting.ReportingEngine
        re.Template = New ReportTemplate

        For i = 1 To 10
            re.ReportElements.Add(New ReportElement)
        Next

        DocumentViewer1.Document = re.Report
    End Sub

    Public Sub New()

        ' This call is required by the designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        GenerateReport()
    End Sub
End Class
